export default {
    props: {
        data: {
            type: Array,
            required: true
        }
    },
    computed: {
        cols() {
            return this.$parent.columns;
        },
    },
    render(h) {
        const ths = this.cols.map(v => {
            return h('th', v.label)
        })
        console.log('ths',ths)
        const tr = [h('tr', ths)]
        return h('thead', tr)
    }
}